package com.glink.manage.service;

import com.glink.common.exception.GeneralSimpleException;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : qiushaoshan
 * @create 2024/6/18 10:50
 */
public interface PasswordService {

    /**
     * 获取默认密码
     * @return 密码
     */
    String getDefaultPassword();
    
    String encrypt(String publicKey, String str) throws Exception;
        
    /**
     * 
     * @param plainPassword 明文密码
     * @param salt 盐值
     * @return 密文密码
     */
    String generateBySm3(String plainPassword, String salt);

    String onlyDecryptAndRemoveKey(String privateKey, String cipher) throws GeneralSimpleException;

    String sm3(String plainText);
}
